package com.xsj.service;



import com.xsj.pojo.Card;
import com.xsj.vo.CardVO;
import com.xsj.vo.Cart;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

public interface CardService {
    List<Card> getCard(Integer userId);

    Card addCard(CardVO card) throws Exception;

    CardVO haveCard(int userId,int cardId);

    List<HashMap<String,Object>> searchCard(String cardName);

    public void initializeCouponStock(Integer cardId,int stock);

    List<HashMap<String,Object>> getCardList(int userId);

    List<Card> allCard();

}
